var express = require('express');
var router = express.Router();

var {getNewArticle, getArticle, viewArticle,getArticleTalk, getIndex} = require('../controller/getData')
const util = require('../util/common')
//getArticles
//获取最新文章列表
router.get('/getNewArticle', getNewArticle)
//获取文章的详情
router.get('/getArticle/:id', getArticle)
//获取小标签或者是文章分类的内容
//router.post('/getArticles', getArticles)
//文章被查看数自动+1API
router.get('/viewArticle/:id', viewArticle)
//获取文章评论
router.get('/getArticleTalk/:id',getArticleTalk)
//获取首页信息
router.get('/getIndex', getIndex)
module.exports = router;
